﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using sonicERPDALCsharp;
using sonicERPinfoCsharp;
using System.Xml;
namespace sonicERPinterfaceCsharp.Forms
{
    public partial class Form2 : Form
    {
        Util util = new Util();
        NivelusuarioDAL dal = new NivelusuarioDAL();
        info entidade = new info();
        
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            entidade.nivelusuario.Nivel = Convert.ToString(DBNull.Value);
            DataView dv = dal.getdados(entidade);
            
            util.gerarxml(dv);

      
        }

        private void button2_Click(object sender, EventArgs e)
        {
            dtg.DataSource = util.getxml();

         }

        private void button3_Click(object sender, EventArgs e)
        {

        }              
                        
           
        }
    }

